package cn.itqiqi.student_system_java.controller;

import cn.itqiqi.student_system_java.pojo.Class;
import cn.itqiqi.student_system_java.service.impl.ClassServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author kevin_琪琪
 * @version 1.0
 * @description
 * @date 2022-06-19 14:41
 */
@RestController
public class ClassController {

    @Autowired
    private ClassServiceImpl classService;

    @GetMapping("/classNameAll")
    public String getAllClass() {
        return classService.getAllClassName();
    }

}
